﻿using System;
using System.Diagnostics;
using Gizmox.WebGUI.Forms;

namespace CoCoon.Forms.Ribbon
{
    [Serializable]
    public class RibbonBarControlItem : RibbonBarItem
    {
        public RibbonBarControlItem(Control myControl)
        {
            MyControl = myControl;
        }

        protected override Control CreateControl()
        {
            Debug.Assert(MyControl != null, "MyControl != null");
            return (Control) MyControl;
        }

        public Control MyControl { get; set; }

    }
}